/*
 * @LastEditTime: 2023-10-26 18:03:42
 * @FilePath: \bdcar-net\src\api\trajectoryMonitor\realtimePosition.js
 */
import request from '@/utils/request'

/**
 *  实时定位-输入设备id获取信息
 *  pmy
 * @export
 * @return
 */
export async function getLastGpsByid(deviceId) {
    let url = "/comlbs/realtimePositioning/queryLastGps";
    return request({
        url: url,
        method: 'get',
        params: {
            deviceId: deviceId,
        },
    });
};

/**
 *  实时定位-获取设备视频
 *  pmy
 * @export
 * @return
 */
export async function getCarVideoList(data) {
    let url = "/comlbs/realtimePositioning/realtimeDeviceVideoList";
    return request({
        url: url,
        method: 'get',
        params: data
    });
};

// /**
//  *  通用-获取公司数据
//  *  pmy
//  * @export
//  * @return
//  */
// export async function getSearchCompanyList() {
//     let url = "/system/dept/treeListWithParents";
//     return request({
//         url: url,
//         method: "get",
//     });
// };

/**
 *  实时定位-获取所有设备地图数据
 *  pmy
 * @export
 * @return
 */
export async function getMapCar() {
    let url = "/comlbs/realtimePositioning/getMapDeviceList";
    return request({
        url: url,
        method: 'get'
    });
};

